<template>
    <div class="header_box">
        <van-nav-bar :title="title" left-arrow @click-left="back">
            <van-icon name="ellipsis" slot="right" class="color"/>
        </van-nav-bar>
        <div class="box"></div>
    </div>
</template>

<script>
import http from 'Utils/http.js'
// param.append("password", "woaini123");
// http({
//     url: 'https://wcgi.jianke.com/passport/account/login',
//     method: 'post',
//     params: {
//         platform: 2,
//         loginName: 15909453697,
//         password: 'ycx1314'
//     }
// })
// .then( (res) => console.log(res))


import Vue from 'vue'
import { NavBar } from 'vant';

Vue.use(NavBar);

export default {
    props: {
        title: String
    },
    methods: {
        back() {
            this.$router.go(-1);
        }
    }
}
</script>

<style lang="scss" scoped>
    .header_box {
        
        .van-nav-bar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            // bottom: 0;
            z-index: 99 !important;
            color: #111;
        }
        .van-icon {
            color: #111;
        }
    }
    .box {
        height: .46rem;
    }
</style>




